//
//  VCTableViewCell.m
//  17-HomeWork
//
//  Created by dllo on 16/8/5.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "VCTableViewCell.h"
#import "PersonModel.h"

@implementation VCTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _label = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, self.bounds.size.width - 10, self.bounds.size.height - 10)];
        _label.numberOfLines = 0;
        [self.contentView addSubview:_label];
    }
    return self;
}
- (void)setPersonModel:(PersonModel *)personModel {
    _personModel = [[PersonModel alloc] initWithName:_personModel.name imageName:_personModel.imageName address:_personModel.address iphone:_personModel.iphone];
}









- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
